package Example03class;

public class Rectangle {
	int width;
	int height;
	public Rectangle(){
		width=5;
		height=5;
	}
	public Rectangle(int a, int b){
		width=a;
		height=b;
	}
	public int area(){
		return width*height;
	}

	public static void main(String[] args) {
		Rectangle rect=new Rectangle();
		Rectangle rectb=new Rectangle(3,4);
		System.out.println("rect a: "+rect.area());
		System.out.println("rect b: "+rectb.area());
	}

}
